package com.eliaukjq.jihe;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

/**
 * @Author : 佩萁
 * Description :
 * @Create : 2024/7/18 - 12:04
 */
public class demo07 {
    public static void main(String[] args) {
        ArrayList<String> list = new ArrayList<>();
        list.add("1");
        list.add("3");
        list.add("6");
        list.add("2");
        list.add("9");
        Collections.sort(list);
        for (String s : list) {
            System.out.print(s);
        }
    }
}
